allow ~/ prefix in bookmarks and hacked session files