encoding two different header sets should remove non-present headers