Use custom base64 encoding to support IE < 10