fixing base64 encode/decode for node