pub fn url_encode_path_segment(s: &str) -> StringExpand description
URL-encode a path segment, preserving forward slashes.
Similar to url_encode but also allows forward slashes for path converter
values, so /files/a/b/c.txt stays as-is instead of encoding / as %2F.