Forbid empty host names in order to make URL parsing idempotent.