code: public static String[] encodeString(String[] values) {
      if (values == null) {
        return null;
      }
      String[] encodedValues = new String[values.length];
      for (int i = 0; i < values.length; i++) {
        encodedValues[i] = encodeString(values[i]);
      }
      return encodedValues;
    }
docs: Escape all delimiter chars in string.
  @param values Strings
  @return Encoded strings