map -package:charset -is:exact -package:bytestring is:exact -package:case-insensitive package:foldl

Fold pairs into a map.