Broaden the maxlength check to allow for any negative value

The specs say that any negative value is valid so we shouldn't check for just -1