Beef up unit name validation

Fix #793
How is one supposed to use template units if they can't be submitted?