Improve the performance of b58enc() by reducing iteration count

Signed-off-by: Huang Le <4tarhl@gmail.com>