fix issue #20 for dealing with Chinese correctly