attempting to fix encoding error on Ruby 1.9