base64 helper for node