Fix title snarfing on Python 3.