title: Java NIO file path issue
body: <p>I used the following code to get the path             </p>
  
  <pre><code>Path errorFilePath = FileSystems.getDefault().getPath(errorFile);
  </code></pre>
  
  <p>When I try to move a file using the File NIO, I get the error below:</p>
  
  <pre><code>java.nio.file.InvalidPathException: Illegal char &lt;:&gt; at index 2: \C:\Sample\sample.txt
  </code></pre>
  
  <p>I also tried using <a href="http://docs.oracle.com/javase/7/docs/api/java/net/URLEncoder.html#encode%28java.lang.String,java.lang.String%29" rel="noreferrer"><code>URL.encode(errorFile)</code></a> which results in the same error.</p>