Fix char count, use UTF-8 instead of ASCII-8BIT

Signed-off-by: Youhei SASAKI <uwabami@gfd-dennou.org>