public static String[] encode(final String[] values, final String encoding) {
    if (values != null) {
      for (int index = 0; index < values.length; index++) {
        values[index] = encode(values[index], encoding);
      }
    }

    return values;
  }
Encodes the array of String values using the specified encoding (e.g. UTF-8). Each String value
in the array is encoded individually and placed back in the array at the exact same index.
<p>

@param values the array of encoded String values to encode.
@return the same String array with each String value encoded using the default encoding of
        UTF-8.
@see #encode(String, String)
@see java.net.URLEncoder
geode-web/src/main/java/org/apache/geode/management/internal/web/util/UriUtils.java