Handle ampersands in tab titles correctly.

Fixes #301.