Best way to fix that without replacing it if its not cleanable is to paint it. Tape off each side of the molding. The inside, and outside with painters tape. Then put paper over the windshield and about 20 inches on the outside of the moulding as well. Tape all the newspaper down so it wont move around. Then get a bottle of flat black, or gloss black, your choice and do like 2-3 thing layers on there. Doing multiple thing layers from about 10 inches away will make it not blotch up.
We do this all the time at our body shop if a customer doesnt want to replace the molding. Works great, and looks great as well.