Use /u when calling preg_match

This fixes problems with multi-byte characters not being reconized as words.

Fixes #2154
Merge pull request #2156 from DeuxHuitHuit/issue-2154

Use /u when calling `preg_match`. Fixes #2154