sanitize data before logging