api/units: correct valid chars for unit names
Merge pull request #891 from jonboulle/master

api/units: correct valid chars for unit names