Fix handling tags with tabs [Fixes #4]