Return a set of codecs instead of a collection to strip the duplicates.

Each codec is in the map twice, once for name and once for
content-type. We don't need both copies returned.