Use EncodingObj in decode()