Encode to utf-8 at the FileWriter level so that we catch all undecodable strings