Preserve custom tab titles

GitHub issues #42, #44, #58
Trac 487, 515