public static String unescapeCommandLine(String arg) {
        if (arg.contains(" ") && SystemUtils.IS_OS_WINDOWS &&
                (arg.startsWith("\"") && arg.endsWith("\""))) {
            arg = arg.substring(1, arg.length() - 1);
        }
        return arg;
    }
This should correctly put double-quotes around an argument if
ProcessBuilder doesn't seem to work (as it doesn't
on paths with spaces on Windows)

@param arg
@return
tika-core/src/main/java/org/apache/tika/utils/ProcessUtils.java