title: How to fix an "Invalid Character in Path" Error, When downloading a File and named by its title
body: <p>I'm getting an Invalid Character In Path error, I know Why I am, My Code is giving the file name based off a title of a video, and the video Has an invalid character to Be specific it's this character "|" From this video
  'GLORYHAMMER - Angus McFife " | " Napalm Records' I just need to know how to fix it. I'm using the YoutubeExtractor plugin.</p>
  
  <pre><code>private void btnDownload_Click(object sender, EventArgs e)
  {
      progressBar.Minimum = 0;
      progressBar.Maximum = 100;
      IEnumerable&lt;VideoInfo&gt; videos = DownloadUrlResolver.GetDownloadUrls(txtUrl.Text);
      VideoInfo video = videos.First(p =&gt; p.VideoType == VideoType.Mp4 &amp;&amp; p.Resolution == Convert.ToInt32(cboResolution.Text));
      if (video.RequiresDecryption) 
      {
          DownloadUrlResolver.DecryptDownloadUrl(video);
      }
      VideoDownloader downloader = new VideoDownloader(video, Path.Combine(Application.StartupPath + "\\", video.Title + video.VideoExtension));
      downloader.DownloadProgressChanged += Downloader_DownloadProgressChanged;
      Thread thread = new Thread(() =&gt; { downloader.Execute(); }) { IsBackground = true };
      thread.Start();
  }
  </code></pre>
  
  <p>I had done a few things like doing an if statement</p>
  
  <pre><code>if (video.Title.Contains("/"))
  {
      video.Title.Replace("/", "");
  }
  </code></pre>
  
  <p>or using Regex but I quickly figured out that wasn't going to work because I needed a KeyPush Event. I'm using a download event, and its extracting the title which contains the Illegal Character.</p>
  
  <p>If yall could help with this, I'd be so grateful!</p>