added auto_escape for sed helper function.