Sanitizes nested objects