Fixes encoding in the base twig template