Update no-header-set example
Pass encoding context to Encode() methods