fix highlighting for special characters