docs: public static byte[] changeEncoding(byte[] input, String oldEncoding, String newEncoding) {
  
          if ((oldEncoding == null) || (newEncoding == null)) {
              return input;
          }
          if (oldEncoding.trim().equalsIgnoreCase(newEncoding.trim())) {
              return input;
          }
          byte[] result = input;
          try {
              result = (new String(input, oldEncoding)).getBytes(newEncoding);
          } catch (UnsupportedEncodingException e) {
              // return value will be input value
          }
          return result;
      }