prevent errors when hostname contains "protocolname" as part of it