Fixed bug with spaces in filenames causing exception.