Ensure that the data is string. If it is an ArrayBuffer it will be converted to string using TextDecoder.
Ensure that the data is string. If it is an ArrayBuffer it will be converted to string using TextDecoder.