api/units: correct valid chars for unit names

you reviewed this garbage