Add encoding to ruby header