change civilstate encoding