Enforce latin-1 when reading and writing files