Use matching against escaped URLs

@r0mant @horkhe Please review this fixes problems with routing of URLs containing escaped slashes and will reduce amount of errors in logs