Fix for --incompatible character encodings-- conversion