pub fn escape_pointer_segment(key: &str) -> String
RFC 6901 JSON Pointer escape for property-key segments. Node ID segments must not contain ‘/’ or ‘~’ and are not escaped.