title: readAsBinaryString() not working properly
body: <p>This is my code:</p>
  
  <pre><code>var reader = new FileReader();
  reader.onload = function(e) {
      download(reader.result, "Test.stl");
  }
  reader.readAsBinaryString(input_file_field.files[0]);
  </code></pre>
  
  <p>Result file:</p>
  
  <p><a href="https://i.stack.imgur.com/EjwWi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EjwWi.png" alt="Result file"></a></p>
  
  <p>Original file:</p>
  
  <p><a href="https://i.stack.imgur.com/RFqNs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RFqNs.png" alt="Original file"></a>    </p>
  
  <p>The output is almost the same with little differences (and this is not a problem of the "download" function, is the same if I put a log into the console).</p>
  
  <p>Any ideas of what's happening?</p>
  
  <hr>
  
  <p><strong>Edit:</strong></p>
  
  <p>This is the code I'm using for the binary conversion (not working neither):</p>
  
  <pre><code>var reader = new FileReader();
  reader.onload = function(e) {
      var fileData = reader.result;
      var bytes = new Uint8Array(fileData);
      var binaryText = '';
  
      for (var index = 0; index &lt; bytes.byteLength; index++) {
          binaryText += String.fromCharCode(bytes[index]);
      }
  
      download(binaryText, "Test.stl");
  }
  reader.readAsArrayBuffer(input_field.files[0]);
  </code></pre>