Escape special characters in the curl command URL