Windows friendly path slicing.