fix some character encoding problem