Update magic_encoding.rb