Fix regular expression  encodings for Ruby 2.0.