Fixes to cope with spaces in filenames.


git-svn-id: svn://svn.code.sf.net/p/staden/code/staden@3527 ba6f2710-ca9f-427c-89d3-5bf716dbc8e1