in src/main/java/com/googlesource/gerrit/plugins/download/command/QuoteUtil.java [21:27]
public static String quote(String string) {
// Avoid quotes if the chars are entirely "safe".
if (string.matches("^[a-zA-Z0-9@_.:/-]+$")) {
return string;
}
return "\"" + string + "\"";
}