Remove KCODE from Ruby 1.9

KCODE is no longer supported in Ruby 1.9
Merge pull request #1 from phantomwhale/patch-1

Remove KCODE from Ruby 1.9