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