enforce that files are written with utf8 encoding