normalizing rest urls