I corrected some bugs  for utf-8

I cloned this projects a few days ago. and i found error when running it.
it is about chinese unicode char.
i had fixed it,but maybe it is not in correct method.
can you review it?