Changing slugify from twig function to filter