readded uri_filter function (fixes #45)