fix utf8 encoding issues