pub fn encode_path_segment(value: impl Display) -> String
Percent-encodes a value for use as a single path segment.