write_file
Creates a UTF-8 encoded text file.
Parameters