This problem is more due to the water itself than heaters. Some water (wells, untreated) contains large amounts of impurities such as bacteria. Some bacteria are harmless to health, but stagnant water-deprived the water of oxygen, producing hydrogen sulfide gas which is responsible for the offensive odor.