We had to write our own base64 decoder.