fn make_filename_safe(path: &PathBuf) -> PathBuf