Make node sanitization optional