code: public static Charset forNameUEE(String charsetName) throws UnsupportedEncodingException {
          try {
              return Charset.forName(charsetName);
          } catch (Exception cause) {
              UnsupportedEncodingException ex = new UnsupportedEncodingException(charsetName);
              ex.initCause(cause);
              throw ex;
          }
      }
docs: Equivalent to {@code forName} but only throws {@code UnsupportedEncodingException},
  which is all pre-nio code claims to throw.
  
  @hide internal use only