pub fn encode_path(text: impl AsRef<str>) -> String
Encode characters that need to be encoded on the path section of the URL.