[COOK-3497] Handle job names with spaces in them correctly