Make rust code in ESR 52 proxy safe

Even though we don't use any Rust in ESR 52 we should get rid of proxy bypassing calls for safety and to remind us for later:

third_party/rust/url/src/host.rs has a to_socket_addrs and ToSocketAddrs methods.