Nonlinear reconstruction of redshift space distortions