Switched reading/writing to UTF-8