Some ruby 1.8-specific encoding fixes