title: Java SFTP (apache vfs2) - password with @
body: <p>I'm trying to use the org.apache.commons.vfs2 to download a file via SFTP.
  The problem is, the password contains the '@' char, so this causes the URI to be parsed incorrectly:</p>
  
  <pre><code>org.apache.commons.vfs2.FileSystemException: Expecting / to follow the hostname in URI
  </code></pre>
  
  <p>Does anyone has an idea how to get around this issue? (I can't change the password, obviously). This is the code I'm using:</p>
  
  <pre><code>String sftpUri = "sftp://" + userName + ":" + password + "@"
          + remoteServerAddress + "/" + remoteDirectory + fileName;
  
  String filepath = localDirectory + fileName;
  File file = new File(filepath);
  FileObject localFile = manager.resolveFile(file.getAbsolutePath());
  
  FileObject remoteFile = manager.resolveFile(sftpUri, opts);
  localFile.copyFrom(remoteFile, Selectors.SELECT_SELF);
  </code></pre>