A 19th-century solution to heat homes is helping the world cut emissions