AVRO-1257. Ruby: Fix UTF-8 encoding in Ruby 1.9.  Contributed by Martin Kleppmann.

git-svn-id: https://svn.apache.org/repos/asf/avro/trunk@1447957 13f79535-47bb-0310-9956-ffa450edef68