Better fix for quotes escaping issue in exercises - refs #5751