Added encoding to serializable.rb