Fixup for 5c9aa9af: Actually convert to str for unicode hostnames.