Change document title when loading a file. Fixes #1