@ -7,7 +7,7 @@
if (str instanceof Buffer) {
buffer = str;
} else {
buffer = Buffer.from(str.toString(), 'binary');
buffer = Buffer.from(String(str), 'binary');
}
return buffer.toString('base64');