code: public static String generateArgline(final String scriptpath, final String[] args, final Boolean unsafe) {
          return generateArgline(scriptpath, args, " ", unsafe);
      }
docs: Create an appropriately quoted argline to use given the command (script path) and argument strings.
  
  @param scriptpath path to command or script
  @param args       arguments to pass to the command
  @param unsafe     whether to use backwards-compatible, known-insecure quoting
  
  @return a String of the command followed by the arguments, where each item which has spaces is appropriately
  quoted.  Pre-quoted items are not changed during "unsafe" quoting.