New encode option

New ```encodeErrorSummary``` option for ```errorSummary```