Convert the other getHostByName implementations to StringRef.