Deprotection by electrolysis