update dependencies and devDependencies, fix issue with updated html parser not wanti...
[websub-hub] / src / link-helper.js
index 2b6a8334acce4b8c879448093fc1a522b5629380..93a947be58f284d63939000f5f342a3bf4fc5770 100644 (file)
@@ -60,7 +60,7 @@ class LinkHelper {
     if (nonUTF8Charset) {
       const iconv = new Iconv(nonUTF8Charset, 'utf-8//translit//ignore');
       try {
-        body = iconv.convert(body);
+        body = iconv.convert(body).toString('utf8');
       } catch (e) {
         /* istanbul ignore next */
         this.logger.error(_scope, 'iconv conversion error', { error: e, contentType, url });