Added support for bases up to 62. (Based on Base64).