api/units: correct valid chars for unit names