utf8 lib update

added support for patterns