A base64 encoder and decoder