unit: beef up name validation
api: check unit name validity on create