escapeTerm: restore escaping / with a single backslash