As \w and \W have been supported in single byte locales only, I added support in multibyte locales.