fix '\r' case ; add grapheme_indices()