Read it here: http://carlos.bueno.org/2011/10/fair-coin.html
The idea is that the chance to get Tails then Heads (TH) is the same as getting Heads then Tails (HT). So throw the coin twice; if you get TT or HH start over. If you get TH assume Tails, and HT, assume Head.