use a specialized function to generate the job id instead of concatenating the tr and a random id, since the tr can now be specified as an arbitrary string containing characters that are either not valid or have special meaning in a file name; so in generating the job id, accept only alphanumeric characters, "_", and "-" and replace all others with "_"