Add some exceptions and the enum type CharacterSet.