String -> HostAndPort function is screaming out to be made generally reusable.