Fix encoding of regexps for Ruby 2.0