My Anet A8 suddenly had issues with being unable to heat the bed. After ruling out software issues, I disconnected the connector and found this (sorry for the terrible quality):

[![Faulty connector: left male, right female, indicator on the burnt pin](https://i.stack.imgur.com/7WYfE.jpg)](https://i.stack.imgur.com/7WYfE.jpg)

The left most pin on the male connector (bed) is also charred. How could I best repair this?