only replace leading '/' when creating routes from paths