Some URLs can cause "bad URI error" when using the URI lib.

It's not necessary to use the URI lib for this filter implementation so
best to remove it.