title: Reading in UTF-8 encoding in Java results in issues at only some places
body: <p>I am reading a UTF_8 encoded file byte by byte in Java Spring Batch and saving the content in mongodb. The reading is delegated to FlatFileItemReader and the encoding is injected into the bean as UTF-8. </p>
  
  <p>What I do see is that only at one or two specific places, the umlaut character is getting stored with an encoding problem in mongodb. I verified that the content in the original file is okay. What is interesting is that everywhere else, the umlaut character in the original file is interpreted correctly and stored correctly in mongodb.</p>
  
  <p>Could you help with this?</p>
  
  <pre><code>&lt;bean id="recordReader" class="org.springframework.batch.item.file.FlatFileItemReader" scope="step"&gt;
      &lt;property name="resource" value="file:#{jobExecutionContext['inputfile']}" /&gt;
      &lt;property name="linesToSkip" value = "1" /&gt;
      &lt;property name= "encoding" value ="UTF-8"/&gt;
      &lt;property name="lineMapper"&gt;
          &lt;bean class="org.springframework.batch.item.file.mapping.DefaultLineMapper" &gt;
              &lt;property name = "lineTokenizer"&gt;
              &lt;bean class = "com.xyz.NoQuoteDelimitedLineTokenizer"&gt;
                  &lt;property name = "strict" value = "false" /&gt;
                  &lt;property name = "names" value = "Col1,Col2,Col3,Col4,Col5,Col6,Col7,Col8" /&gt;
                      &lt;property name="delimiter"&gt;
                          &lt;util:constant static-field="org.springframework.batch.item.file.transform.DelimitedLineTokenizer.DELIMITER_TAB" /&gt;
                      &lt;/property&gt;                     
              &lt;/bean&gt;
              &lt;/property&gt;
              &lt;property name = "fieldSetMapper"&gt;
                  &lt;bean class = "com.xyz.MyFieldSetMapper" &gt;      
                      &lt;property name = "ctx" value="#{jobExecutionContext['contextBean']}"/&gt;
                  &lt;/bean&gt;         
              &lt;/property&gt;
  
          &lt;/bean&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>FieldSetMapper</p>
  
  <pre><code>private void validateFields (String id, ConsumerDO ci, FieldSet fieldset_p) throws Exception 
  {try {
          ci.setCaption(fieldset_p.readString("newCaption"));         
      }
      catch (Exception e) {
  
      }
  }
  </code></pre>