completed utf8 support in a dirty way