You can try cleaning the corrosion off the exposed gold contact sections but more often then not, the gold contact is actually eaten away and there isn't anyway to save it.
I have scraped back the ribbon plastic to expose more contact and then trimmed the end of the cable so it can slide into...