Use rust-encoding’s new EncodeObj type.

See https://github.com/mozilla-servo/rust-encoding/commit/b9e0332e4d362eccb919c74d3e59bf6850e0fe1c