Add option to disable encoding of result