stripDiacritics filter refactored