Remove unused rules; fix unicode escape sequences