Correct escaping function for schedule status