code: public static byte[] stringUToByteArr(String s) {
      char c;
      byte[] b = new byte[2 * s.length()];
      for (int i = 0; i < s.length(); i++) {
        c = s.charAt(i);
        b[2 * i + 1] = (byte) c;
        b[2 * i] = (byte) (c >> 8);
      }
      return b;
    }
docs: -----------------------------------------------------------------