Fix encoding for Unicode characters.