canonical option for encode() opertator