conveniently strip matched path prefix