i would hit up a junk yard and clip that plug off, and solder it in place of that melted one. or find a new pig tail for that plug.
you may even be able to push the pins/ends of the wires out of the plug, and re do the wires with the same metal clips that are on the ends.