`to_curl` is private. Fixes karmi/retire#962