Prevent special characters in filenames