title: MultipartFormDataContent.Add StringContent is adding carraige return/linefeed to the name
body: <p>formData.Add(sJobId,"job_id"); is sending "job_id\r\n" to the server</p>
  
  <p>Here is my C# method:</p>
  
  <pre><code>public static async Task UploadAsync(string url, int job_id, string filename, string filePath) {
    try {
        // Submit the form using HttpClient and 
        // create form data as Multipart (enctype="multipart/form-data")
        using (var fileStream = new StreamContent(System.IO.File.Open(filePath, FileMode.Open, FileAccess.Read)))
        using (var formData = new MultipartFormDataContent()) {
            StringContent sJobId = new StringContent(job_id.ToString());
            StringContent sOthId = new StringContent(job_id.ToString());
            // Try as I might C# adds a CrLf to the end of the job_id tag - so have to strip it in ruby
            formData.Add(sOthId, "oth_id");
            formData.Add(sJobId,"job_id");
            fileStream.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");
            formData.Add(fileStream, "dt_file", filename);
            HttpResponseMessage response = await HttpClient.PostAsync(url, formData);
  
            // If the upload failed there is not a lot we can do 
            return;
        }
    } catch (Exception ex) {
        // Not a lot we can do here - so just ignore it
        System.Diagnostics.Debug.WriteLine($"Upload failed {ex.Message}");
    }
  
  }
  </code></pre>
  
  <p>This is what my Ruby puma server is receiving - see how oth_id and job_id have \r\n appended but "dt_file" does not.</p>
  
  <pre><code>Parameters: {"oth_id\r\n"=&gt;"42157", "job_id\r\n"=&gt;"42157", "dt_file"=&gt;#&lt;ActionDispatch::Http::UploadedFile:0x007f532817dc98 @tempfile=#&lt;Tempfile:/tmp/RackMultipart20190715-37897-189ztb6.msg&gt;, @original_filename="2019-07-15 164600.msg", @content_type="application/octet-stream", @headers="Content-Type: application/octet-stream\r\nContent-Disposition: form-data; name=dt_file; filename=\"2019-07-15 164600.msg\"; filename*=utf-8''2019-07-15%20164600.msg\r\n"&gt;}
  </code></pre>
  
  <p>How do I stop the formData.Add appending a \r\n to the name?</p>