Improve base58 mod.