Electrolysis of a sodium sulfate solution