Do not use params for attachment search

If a request comes in for document.pdf?utm_source=email strip out the get params and only search attachments for "document.pdf", not "document.pdf?utm_source=email"