Broaden the URL-mangling to get a match in /redirect

https://code.google.com/p/otwarchive/issues/detail?id=3574
Changed the #minimal method in URL formatter to strip off anchors and query parameters - except for the sid parameter used by eFiction sites.