Fix owl_filter to properly handle query arguments and fragments

From #3859.

The filter that handles correcting links wasn't taking query arguments and url fragments into account. ? and # would be parsed out into ASCII numbers. This solves that. Users will be able to enter url fragments directly into our link tool and expect them to work.