Make id auto-generation only take the first term in titles. Fixes #90.