Fix String#index and #rindex for Char::REPLACEMENT
#14937
Merged
String#index and #rindex for Char::REPLACEMENT
#14937