util: speed up failure path of ByteToBase10
Merge pull request #505 from iand/master

util: speed up failure path of ByteToBase10