title: Java IO: CharsetDecoder.decode() does not work properly on Linux
body: <p>I've wrote small method what converts incoming String to UTF-8 encoding:</p>
  
  <pre><code>private String convertStringToUTF8( String pIncomingString ) throws CharacterCodingException {
  
          CharsetDecoder cd = Charset.availableCharsets().get("UTF-8").newDecoder( );
          CharBuffer buffer = cd.decode(ByteBuffer.wrap(pIncomingString.getBytes()));
  
          return buffer.toString();
      }
  </code></pre>
  
  <p>This works perfectly on Windows machine, for example - 'ScÃºp' gets replaced with 'Scúp'. However, when deployed to Linux, it does not work ('ScÃºp' remains 'ScÃºp').
  Do anyone know how to resolve this annoying issue on Linux?</p>