An inline fuel filter would have an open end just as the hose has. Might just need a fine mesh screen material secured to the open end of the hose to keep critters out.
I was thinking about removing the hose from the canister that goes to the valve and inserting a bolt/hose clamp -- and running a new hose from the canister to some place under the bike --- thus leaving the canister in place and the hose from the fuel tank in place as well. Would this be satisfactory, or should I just remove the two hoses from the canister as already suggested?
don