Fix handling of filters with spaces in the name.