fix base64 for node.js