Fix headerbar title when a new file is opened.