fixed data sanitization for Security object.