If there is any obvious heat damage to the wire ends, cut off the damaged end of the wire and then strip back a little insulation. This will expose enough of the copper to secure it to the new base successfully. Using your previously marked wires, replace them in the same position as before.