Use mb_substr for multibyte support.

Signed-off-by: Toha <tohenk@yahoo.com>