fix multibyte encoding problem