Improve number parsing and avoid unicode.h.