Fixed the encoding error for chinese