Implement String#index, fixes #2073
Handle utf-8 code in index/rindex
Cosmetic change
Merge pull request #2074 from mattn/fix_string_utf8_index

Implement String#index, fixes #2073
mruby-string-utf8: String#reverse! may leak memory when mrb_str_modify() raises exception