Workaround for "incompatible character encodings: ASCII-8BIT and UTF-8"