Add encoding option to writeFile