fails:String#index with Regexp raises an Encoding::CompatibilityError if the encodings are incompatible
