Correct char-encoding errors