Changed title bar format for file:// URI

Local text files will appear in the title bar as "foo (~/bar)".
Tilda (~) replaces $HOME environment variable when found.