Improve compatibility with Ruby 1.8.6

Replacing the 'chars' method with this 'split'
is equivalent and Unicode-safe while functioning
on the version of Ruby included on CentOS 4.