fixed two more issues with the url url rewriter (closes issue #38)