title: Logstash File plugin fails on UTF-8 JSON input
body: <p>We import JSON log files into an Elasticsearch database, and at least on some machines we've discovered that import fails complaining about encoding problems ("incompatible encodings: Windows-1252 and UTF-8"). The input configuration is simple:</p>
  
  <pre><code>  file {
      path =&gt; "D:/Octopus/Applications/prod-ndoa/Bridge.Web/logs/BridgeSoap.*.txt"
      sincedb_path =&gt; "D:/Octopus/Applications/prod-ndoa/Bridge.Web/logs/sincedb"
      codec =&gt; json
     }
  </code></pre>
  
  <p>But as long as input files contain byte origin mark (BOM) in the beginning of the file, the processing fails.</p>
  
  <p>If I remove codec json, then the import works but using "plain" format (i.e. our JSON documents are imported as strings).</p>
  
  <p>What is strange is this has been working for quite some time on some machines. It's the test of a new machine installation that uncovered this error.</p>