Ensure local filename does not contain URL query parameters