Foliations determined by their leaf spaces