added encoding for approval elections.