title: Parsing of CSV file using Node/Express spits out weird \x001 codes
body: <p>I'm using Node and Express to fetch a .CSV file from a URL that I want to parse. The process of downloading it works just fine.</p>
  <p>But when I use <code>csv-parser</code> to parse the file the output in the console looks like this:
  <a href="https://i.stack.imgur.com/ysMYW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ysMYW.png" alt="enter image description here" /></a></p>
  <p>Just tonnes of lines of weird looking byte code? If I use excel or numbers to open the CSV file regularly it works fine.</p>
  <p>This is how the data in the csv file looks like:
  <a href="https://i.stack.imgur.com/ovVlU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ovVlU.png" alt="enter image description here" /></a></p>
  <p>My goal is to use a csv parser to convert each row into an object - I've seen many examples of parsers doing this.</p>
  <p>Here's the code from node:</p>
  <pre><code>const broadcasterController = require('./broadcasterController');
  const https = require('https');
  const fs = require('fs');
  const parser = require('csv-parser');
  
  exports.queryFi = async (io) =&gt; {
      // let today = new Date().toISOString().slice(0, 10);
      // let today = '2021-03-20';
  
      fetchInsidersCSV = async () =&gt; {
          //  Download a file and extract the destination
          function downloadFromUrl(url, dest) {
              return new Promise((resolve, reject) =&gt; {
                  var file = fs.createWriteStream(dest);
                  https.get(url, function (response) {
                      response.pipe(file);
                      file.on('finish', function () {
                          file.close();
                          resolve(dest);
                      });
                  }).on('error', function (err) {
                      // Handle errors
                      fs.unlinkSync(dest);
                      reject(new Error('Download failed.'));
                  });
              });
          }
          await downloadFromUrl(
              `https://marknadssok.fi.se/Publiceringsklient/sv-SE/Search/Search?SearchFunctionType=Insyn&amp;Utgivare=&amp;PersonILedandeSt%C3%A4llningNamn=&amp;Transaktionsdatum.From=&amp;Transaktionsdatum.To=&amp;Publiceringsdatum.From=2021-04-01&amp;Publiceringsdatum.To=2021-04-01&amp;button=export&amp;Page=1`,
              'bar.csv'
          );
      };
  
      try {
          const results = [];
          // crawl the web page and start att page 1
          await fetchInsidersCSV();
  
          fs.createReadStream('bar.csv')
              .pipe(parser({ separator: ';' }))
              .on('data', (data) =&gt; results.push(data))
              .on('end', () =&gt; {
                  console.log(results);
              });
  
      } catch (error) {
          console.log(error);
      }
  };
  </code></pre>
  <p>Could anyone please help me with a code solution where the output is correct?</p>