fix base64_encode