widget: Narrow the set of word chars

https://bugzilla.gnome.org/show_bug.cgi?id=730632