pub fn escape_pattern(path: &str) -> StringExpand description
Canonicalize the allowed/disallowed path patterns.
UTF-8 multibyte sequences (and other out-of-range ASCII values) are percent-encoded, and any existing percent-encoded values have their hex values normalised to uppercase.
For example:
/SanJoséSellers ==> /Sanjos%C3%A9Sellers
%aa ==> %AAIf the given path pattern is already adequately escaped, the original string is returned unchanged.