title: cannot open downloaded file having '&' symbol in filename
body: <p>I want to download files uploaded to the server.I have the filenames as  links and I need to download the file directly when the user click it.I have succeeded in that.The issue now I face is I cant open the files containing <code>amp</code> symbols in their filename,eventhough it is downloaded. eg: &amp;,test.doc(filename containing other special symbols can be downloaded and opened properly.)</p>
  
  <p>My php script is like this:</p>
  
  <pre><code>&lt;script&gt;
  function downloadme(file){          
      var link = "download.php?file=" + file; 
      location.replace(link);
  } 
  &lt;/script&gt;
  
  &lt;a title="Click to download" href="javascript:downloadme()"&gt;filename&lt;/a&gt;
  </code></pre>
  
  <p>download.php</p>
  
  <pre><code>&lt;?php
  $path = $_GET['file'];
  header("Content-Description: File Transfer");
  header("Content-Type: application/force-download");
  header("Content-Disposition: attachment; filename=\"" . basename($path . $uri[1]) . "\"" ); 
  @readfile($path);  
   ?&gt;  
  </code></pre>