Handle hostname in fedmsg endpoints the 'right' way.