api/units: correct valid chars for unit names

What in the world were you thinking!?