For buffer serialization you use utf8 (Buffer.concat(chunks).toString('utf8') ), the problem is that if encoding is 'utf8' and a byte sequence in the input is not valid UTF-8, then each invalid byte is replaced with the replacement character U+FFFD. Could you use Buffer.concat(chunks).toString('base64 ') instead?
Description
For buffer serialization you use utf8 (Buffer.concat(chunks).toString('utf8') ), the problem is that if encoding is 'utf8' and a byte sequence in the input is not valid UTF-8, then each invalid byte is replaced with the replacement character U+FFFD. Could you use Buffer.concat(chunks).toString('base64 ') instead?
Issue Type
Bug
Operating System
Windows 10
Node Version
Other
Golang Version
Other
Relevant Log Output
No response