Make sure that tag searches qualified by bag work with bags with spaces.

Saw an error in the logs which led to this fix.