Fix problem with encoding in WordArray

Force the encoding of the regular expression taken from a
configuration file to be the same as for the string from
the inspected code. This is to avoid getting the error
"incompatible encoding regexp match (ASCII-8BIT regexp
with UTF-8 string)".