When soldering the new ends to the existing wire, take care not to use too much solder or the hollow end (where the male plug fits) will fill up with solder due to capillary attraction! The plug will not fit together then! How do I know this?
Luckily, I ordered a spare set!