[ruby-core:117877] [Ruby master Bug#20421] String#index and String#byteindex don't clear `$~` when offset > size (or bytesize)