fix '-' and '_' matching in urls

fix issue #192