pub fn segment(s: &str) -> String
Percent-encode one path segment: everything but RFC 3986 unreserved.