title: Read XML from file with utf-8
body: <p>I have a mule flow with a spring bean that reads a static XML file encoded in utf-8. However it messes up all the non-english characters.
  The bean is defined as follows:</p>
  
  <pre><code>     &lt;spring:bean id="LoadFile" name="Bean" class="java.lang.String"&gt;
      &lt;spring:constructor-arg&gt;
         &lt;spring:bean id="Test" name="org.springframework.util.FileCopyUtils" class="org.springframework.util.FileCopyUtils" factory-method="copyToByteArray"&gt;
              &lt;spring:constructor-arg type="java.io.InputStream" value="classpath:Settings.xml"/&gt;
          &lt;/spring:bean&gt; 
      &lt;/spring:constructor-arg&gt;
  &lt;/spring:bean&gt; 
      &lt;/spring:beans&gt;
  </code></pre>
  
  <p>If I read the same file using my own code like :</p>
  
  <pre><code>        InputStream in = this.getClass().getClassLoader()
              .getResourceAsStream(name);
  </code></pre>
  
  <p>It's utf-8 and works. How can I define the springbean to care about encodings?</p>
  
  <p>Regards</p>