src/main/java/org/jinstagram/http/URLUtils.java
public static String formURLEncodeMap(Map<String, String> map) {
        Preconditions.checkNotNull(map, "Cannot url-encode a null object");

        return (map.size() <= 0) ? EMPTY_STRING : doFormUrlEncode(map);
    }
public static String formURLEncodeMap(Map<String, String> map) {
        Preconditions.checkNotNull(map, "Cannot url-encode a null object");

        return (map.size() <= 0) ? EMPTY_STRING : doFormUrlEncode(map);
    }
Turns a map into a form-urlencoded string

@param map any map
@return form-url-encoded string