String escaping tests