Simple. Screen immigrants at the Canadian embassy in their country of origin, before they even get here.
I might take some questioning, it might not. If a man walks into the Canadian embassy in Pakistan followed by his wife, and she is wearing a burka, then it might not require any questioning at all. They can be refused on the spot.
