Adds support for filepaths containing spaces

filepaths are now quoted and unquoted using urllib
tested on Ubuntu 12.10