Fixed some string encoding stuff