Use MTD for the settings dialog and sanitize things there.