Trying to disable safe mode
Use user's preferred format
Use a more appropriate function sanitize_file_name instead