encodeHeaderAttUnwrapped simplification