public static String envVarEscape(String str) {
    return str
        .replace("\\", "\\\\")
        .replace("\"", "\\\"")
        .replace("`", "\\`");
  }
Make an environment variable string safe to pass.
samza-core/src/main/java/org/apache/samza/util/Util.java