In article <48cd8919cbbbd_8685cd26fc916 / redmine.ruby-lang.org>,
  James Gray <redmine / ruby-lang.org> writes:

> Escaping an encoded String can damage the encoding:

>
>>> s = "+"
> => "+"
>>> s.encode!("UTF-16BE")
> => "\x00+"
>>> re = Regexp.escape(s)
> => "\\+"

Fixed.  Thank you.
-- 
anaka Akira