core: add a str iterator
auto merge of #5932 : huonw/rust/core-str-iterator, r=thestinger