fn replace_in_uri(uri: &str, key: &str, value: &str) -> String