switch the buffer to multibyte if the charset is utf-8