widget: Simplify word-chars handling

Instead of having a small set of characters listed explicitly,
just use the character's unicode categories.

Coincidentally fixes https://bugzilla.gnome.org/show_bug.cgi?id=700217 .