error splitting mesh and image filenames

If a mesh or Image filename has a space in them they are incorrectly
split into folders based on the spaces in the name.
so "Left Wall.dae"  would be split into "Left/Wall" etc.