title: String to byte[] with the right encoding
body: <p>I am trying to test a piece of code for char set decoding (third-party lib). 
  I have wrote an input strings like this:</p>
  
  <pre><code>private static String czech = "Český";
  private static String japanese = "日本語";
  private static String german = "Entwickeln Sie mit Vergnügen";
  private static  String china = "愉快地發展";
  </code></pre>
  
  <p>Now I am trying to get a byte array ( byte[] ) from this strings.
  How to do it correctly?? For example I have tried </p>
  
  <pre><code>byte bb = japanese.getBytes(Charset.forName("EUC-JP")); 
  // because EUC-JP
  // EUC_JP JISX 0201, 0208 and 0212, EUC encoding Japanese 
  // from [http://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html][1]
  </code></pre>
  
  <p>But it seems not right, because the default UTF-8 was returned as result.
  Perhaps the input string is too short or I have used a wrong encoding name?</p>
  
  <p>*The test works like this:</p>
  
  <pre><code>  String encodingName = testerOfEncoding(bb); // default UTF-8 (if could not detect) =)
  </code></pre>