The problem isn't religion. It's Ego -- self-concern. This is the selfishness that sets self apart from others and frequently says, "I'm better than you," or "I'm right and you're wrong."
Behind religious extremism is Ego. Ego doesn't care if it's religion, science, government, skin color, culture or how you break your eggs. Ego will find any reason to maintain separateness from others who are different.
The original purpose of religion was one of bringing people together, teaching humility and love. Ego corrupts all activities of man. We need to hone our ability to recognize the telltale signs of Ego.
Ego can pretend to be good and can do good works, but will always be self-concerned while doing them. Ego wants to be seen as good and powerful, but fears discovery of the truth.
The world will not be safer without religion. It will be safer without Ego.
The world will be safer when we love others as if they were ourselves -- when we wish for them everything that they desire. This is altruistic love, because it has no self-concern. And when you have no self-concern, you have no limitations. Dogma is no longer important. Live and let live takes hold.
Love really is the answer. It is the only True religion. Jesus Christ knew this. So did Gautama Siddhartha Buddha.