test ruby_encoding