Returns a job ID with all invalid characters removed from it. Returns a newly generated unique ID if it contains no valid characters. The generated string is only unique relative to the job IDs that currently exist in the given RenderGrid.