fixed the problem of character encoding