Support non-UTF8 charsets
typo
typo