replace spaces in path to be url appropriate