Cleans up bad encodings with liberal application of fire