Call encode() directly