encode() implemented.