fix unicode bug (#4536)