util: speed up happy path of ByteToBase10