pub fn strip_trailing_slash(input: &str) -> String
Removes trailing slashes before any query or fragment.