U.S. banks, tired of spending billions each year to pay back fleeced consumers, are in the process of replacing tens of millions of old magnetic-strip credit and debit cards with new cards that are equipped with computer chips that store account data more securely.