fix utf8 support

Signed-off-by: Deleterios <deleterios@gmail.com>