fix base64 encoder