title: Nodejs serialport data.toString() Failing encoding
body: <p>I've got a barcode scanner hooked up to a raspberry pi running nodejs serialport. The serialport instance is listening to <code>/dev/input/event0</code></p>
  
  <p>When I run this</p>
  
  <pre><code>var serialport = require("serialport");
  var SP = serialport.SerialPort;
  var port = "/dev/input/event0"
  var sp = new SP(port);
  
  
  sp.on('data', function(data) {
    console.log( data);
  });
  </code></pre>
  
  <p>I git a blob of Buffer objects from a scan. (I think it counts each number in the code as a data event. </p>
  
  <p>My problem is, I can't even get it to converto to proper utf8 numbers. How can I get the data decoded?</p>
  
  <p>Update-1: This is the result of the raw <code>console.log(data)</code> after scanning a barcode with the numbers <code>19024336</code></p>
  
  <pre><code>&lt;Buffer 32 a9 3b 51 54 76 0c 00 04 00 04 00 1e 00 07 00 32 a9 3b 51 6d 76 0c 00 01 00 02 00 01 00 00 00 32 a9 3b 51 76 76 0c 00 00 00 00 00 00 00 00 00&gt;
  &lt;Buffer 32 a9 3b 51 c6 8d 0c 00 04 00 04 00 1e 00 07 00 32 a9 3b 51 dc 8d 0c 00 01 00 02 00 00 00 00 00 32 a9 3b 51 e2 8d 0c 00 04 00 04 00 26 00 07 00 32 a9 3b ...&gt;
  &lt;Buffer 32 a9 3b 51 61 cc 0c 00 04 00 04 00 1f 00 07 00 32 a9 3b 51 78 cc 0c 00 01 00 03 00 00 00 00 00 32 a9 3b 51 7e cc 0c 00 04 00 04 00 21 00 07 00 32 a9 3b ...&gt;
  &lt;Buffer 32 a9 3b 51 5f fb 0c 00 00 00 00 00 00 00 00 00 32 a9 3b 51 e4 0a 0d 00 04 00 04 00 20 00 07 00 32 a9 3b 51 fc 0a 0d 00 01 00 04 00 00 00 00 00 32 a9 3b ...&gt;
  &lt;Buffer 32 a9 3b 51 f6 d5 0d 00 04 00 04 00 28 00 07 00 32 a9 3b 51 0a d6 0d 00 01 00 1c 00 00 00 00 00 32 a9 3b 51 12 d6 0d 00 00 00 00 00 00 00 00 00&gt;
  </code></pre>
  
  <p>It returns different results (from what my human eyes can read here) each time I scan</p>
  
  <p>You may also be interested to know that <code>Buffer.isBuffer(data);</code> returns true</p>