Remove escaped entities from pattern match.