A twig extension for converting data to base64.