private String urlDecode(String fetchKey) {
        if (fetchKey == null) {
            return fetchKey;
        }
        try {
            return URLDecoder.decode(fetchKey, StandardCharsets.UTF_8.toString());
        } catch (UnsupportedEncodingException | IllegalArgumentException e) {
            LOG.warn("couldn't decode fetch key {}", fetchKey);
        }
        return fetchKey;
    }
Tries to parse a long out of the value.  If the val is blank, it returns -1.
Throws {@link NumberFormatException}

@param val
@return
tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/FetcherStreamFactory.java