S-duality and the giant magnon dispersion relation