fixed base64 encoder