[Network] Properly escape form data for copy as curl

Fixed: 1093791
Change-Id: I3cf1438d319d234a4bfe102eebd053f071d78db3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2466187
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Jan Scheffler <janscheffler@chromium.org>
diff --git a/front_end/network/NetworkLogView.js b/front_end/network/NetworkLogView.js
index 4fe6f93..b633cf9 100644
--- a/front_end/network/NetworkLogView.js
+++ b/front_end/network/NetworkLogView.js
@@ -2100,7 +2100,7 @@
       ignoredHeaders.add('content-length');
       inferredMethod = 'POST';
     } else if (formData) {
-      data.push('--data-binary ' + escapeString(formData));
+      data.push('--data-raw ' + escapeString(formData));
       ignoredHeaders.add('content-length');
       inferredMethod = 'POST';
     }