this fixes problems with mac os x 'tr'

as requested, the fix with LC_ALL=C