fixed base64encode