Escape selectors, fixes #5452