Split on all non-words

Previously, there were some special cases for XML tags. This change takes care of all non-words instead of just special cases.