pub fn sanitize_path_component(component: &str) -> String
Sanitize a path component by removing or replacing dangerous characters Allows only alphanumeric characters, hyphens, underscores, and dots