fn sanitize_filename(name: &str) -> String
Sanitizes a string so it can be safely used as a filename.