title: Escape filenames the same way Bash does it
body: <p>When I use the "tab" key in <code>bash</code> (when you have started to type the filename and you want it to complete), <code>bash</code> escapes the filename correctly, and if I use exactly that "escaped" filename, it works.</p>
  
  <p>For Instance:</p>
  
  <p><code>An-Beat - Mentally Insine (Original Mix).mp3</code> => After <code>bash</code> Escapes It Using "TAB" 
  <code>An-Beat\ -\ Mentally\ Insine\ \(Original\ Mix\).mp3</code></p>
  
  <p>I'm search for a function for <code>bash</code> that will escape a filename the same way "tab" escapes filenames.</p>