Enforce limits on host and ident length