enable iteration over string in ruby 1.9