use '0' codepoint to derive digits in charToInt instead of a code map