added base32 and base64 encoding, fixed base32 and base64 decoding