pub fn url_encode(input: &str) -> String
URL encode a string, converting special characters to percent-encoded format