Use utf-8 charset.

Handle characters count.

Signed-off-by: Y.Moon <chglove@live.cn>