It's generally a bad idea to have the user in control of filenames you create if those files are not on a device they own.