Escape delimiter characters in BaseExcludeFilter.