Turning the character sets into dictionaries