disallow empty hostnames

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>