fix creation of files with simple quotes