open dialog: pass the directory, not the file name
open dialog: pass the directory, not the file name

passing the file name works for local files for some strange reason,
but fails for remotes (e.g. ftp://).

jfmcarreira/kate,jfmcarreira/kate,jfmcarreira/kate