rb: Make MemoryTransport's inspect_buffer method work in Ruby 1.9

Patch: Rajesh Malepati

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@983680 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/lib/thrift/transport/memory_buffer_transport.rb b/lib/rb/lib/thrift/transport/memory_buffer_transport.rb
index b4a80f8..3169b2b 100644
--- a/lib/rb/lib/thrift/transport/memory_buffer_transport.rb
+++ b/lib/rb/lib/thrift/transport/memory_buffer_transport.rb
@@ -88,9 +88,9 @@
           out << ">"
         end
       
-        out << @buf[idx].to_s(16)
+        out << @buf[idx].ord.to_s(16)
       end
       out.join(" ")
     end
   end
-end
\ No newline at end of file
+end