fixed string encoding issues, in a really stupid way