we do have a generalized escaping function, would it be more robust to use that?