Fix character coding.