Fix invalid multibyte char error

Fixes the encoding issue itself, not the strings in the file.