How to protect your legacies against charity scandals