fix: preserve CSS escape sequences when printing selectors (#18667)