Ruby 1.8 instance variables are stored as strings

This fixes @da3be98 for ruby 1.8.