added base64 encoding utilities