Enhanced sanitization just before output