Use ARGF#each_char instead of ARGF#chars

ARGF#chars is deprecated in Ruby 2.0.