Brand new encode.rb