Escape special characters from the curl URL string