Fix a bug where str_numtowords(100000) was wrong

Bug report by Bernard Sang