Thing is, if you were to convert Muslim terrorists to Christianity, Buddhism, or even atheism by getting rid of their religion entirely, the political, territorial, economic, and nationalistic motivations would still be there. They would still commit the same exact violent acts with the same degree of fervor. They would simply switch to the most extremist version of whichever ideology they've been converted to and use that as justification for their actions. This is also why saying, "Well if they practiced a peaceful form of Islam, they wouldn't be terrorists," is illogical. Peaceful forms of Islam are readily available, they just choose to ignore it because it doesn't suit their agenda.
No religion? No excuse? No problem. People will still find reasons to kill each other. Chimpanzees do this without any religion whatsoever.