Fix error: incompatible character encodings: ASCII-8BIT and UTF-8