Make sure that cancelling the open dialog does not create a new tracker instance

This branch also includes the same character encoding treatment that was applied to the save button code.