The tanh transformation for singular integrals