fix req.url.substr