Added support to japanese multi-byte characters