The length of a query name is the sum of its labels plus 1 for each `.`.
The maximum length of a query name is 255 characters. This is not
strictly enforced in `parse_name()` and returns an incorrecta misleading error when
it occurs. This patch fixes this and adds a unit test for it.
Depends on D4418