Why do you need to know the person's gender? If you need to say "him/her", just explain that you don't know the person's gender or make a guess. If they feel a need to correct you, then they will. Since it is a universal problem, they rarely get offended. Iamjames, for example doesn't seem offended that we mistake her for a guy all the time, does she?