Add encoding header for ruby 1.9