pub fn sanitize_path_component(s: &str) -> String
Sanitize a string for use as a single filesystem path component.
Removes path traversal sequences (.., /, \) and filters to alphanumeric characters plus -, _, and ..
..
/
\
-
_
.