escape quotes in params to get curl to work