Treatment of gas streams comprising solid matter