title: Issues with path for java.io.File
body: <p>I am getting file path in eclipse plugin using <code>org.eclipse.swt.widgets.FileDialog</code> and saving the path in XML files.</p>
  
  <p>In web.xml , path is stored as below (I can't change backsladh to forwardslash or escape backslash since the value is coming from SWT FileDialog)</p>
  
  <pre><code>&lt;init-param&gt;
    &lt;param-name&gt;filePath&lt;/param-name&gt;
    &lt;param-value&gt;c:\new\demo\next\version.txt&lt;/param-value&gt;
  &lt;/init-param&gt;
  </code></pre>
  
  <p>In my filter , i have below code in init() method but am not able to get File reference due to special characters</p>
  
  <pre><code>String filePath = filterConfig.getInitParameter("filePath");
  // Tried filePath.replace('\\','/') --&gt; Didnot work since \n is a single character
  File f = new File(path)
  </code></pre>