change String#chars to each_char.to_a

compati 1.9.3