A simple base64 encoder/decoder