UrlRewriter does not trim urls