And no, the microwave is not a valid option.
Water foaming when heated is caused by impurities in the water rather than the heating mechanism. So whatever is causing your water to foam is in it either way
And we all know what science says: if you can’t see something, it isn’t there!