pub fn path_segment(s: &str) -> StringExpand description
Escapes an identifier for use in a URL path, leaving / and : literal:
APIs expect /works/doi:10.1038/nature14539 as written, but DOIs may
contain #, ? or <>, which must not be taken as URL syntax.