Expose doNotThrow when encoding