fix UTF-8 string not displayed bug