Fix UTF-8 support

Signed-off-by: Jerome Flesch <jflesch@gmail.com>