Search for a charged Higgs boson in pp collisions at √s = 8 TeV