Merge pull request #8704 from JosJuice/setting-txt-output-null SettingsHandler: Don't output null bytes