Helps the router's convertRouteToName method handle routes with parameters.