Fix encoding problems.