Fix character encoding error concerning UTF-8 and ASCII-8BIT