The connector will have a locking mechanism that will have to be released. You maybe able to get it out w a very fine jewelers screw driver or a very fine pointed pick. They make tools for pin removal, you may find one @ a auto parts store. Strip back a little until you have undamaged strands of wire , you will need to carefully fold back the connector clamps just enogh to get the damaged wire out . Use heat from soldering iron to get all the old wire & solder off. Put your new wire in the connector , fold the clamps back down & resolder . Dont leave any blobs on the connector or it will not go back in the terminal properly.
Husaberg 570FE Tagged & Tarded / KTM 250 EXC