pub fn quote(fragment: &str) -> String
quote path fragment using backslash escape and tilde escape defined by the RFC specification.
After escaping each path-fragment caller can join them with ‘/’.