Fixed regexp error if current codepage isn't equal to UTF-8 in UTF-8 environment