ufo: have locale-independant output

Closes #1677.

r? @frank-trampe