Implemented base64 encoding/decoding