Use (?|…) instead of (?:…).
Add mb_*_encoding('UTF-8'); functions.
Merge pull request #1 from Hywan/fix

More realistic env