Encoding removes headers from reference set not in header set