separate Map.EncodeMappings() method