build a new file with utf-8 encoding