Embrace the beauty of XAML Binding. Object is directly projected to UI control. In this modification, EncodingInfoDataContainer is directly coupled with Labels in DataTemplate, so does not need string works (and more design friendly).
Update the main window bindings