Use UTF-8 encoding when getting bytes for strings to match encoding used for pattern.
Merge branch 'master' into fix-regex-encoding
Merge branch 'Coveo-fix-regex-encoding'