Implement base64 encoding for IE.