remove invalid characters in the job xml