public static String getSamzaVersion() {
    return Optional.ofNullable(Util.class.getPackage().getImplementationVersion()).orElseGet(() -> {
      LOG.warn("Unable to find implementation samza version in jar's meta info. Defaulting to {}", FALLBACK_VERSION);
      return FALLBACK_VERSION;
    });
  }
Make an environment variable string safe to pass.
samza-core/src/main/java/org/apache/samza/util/Util.java