The only real solution I know is to just rip out the old and replace it. The carpet is pretty easy, just takes a while taking the interior of the car out. the head liner on the other hand is a pain. But other than replacing them you can try cleaning it all with bleach and then drying it out, a big fan blowing through the car kind of thing.