What we need is a really small diameter heat shrink a lighter and a male to male jumper wire.
Just follow the photos below and you will understand ,any question can be made .
Now remove the plastic part on the one side of the jumper wire .
Now put a piece of heatshrink on the this side of the jumper wire .
Shrink it with the lighter till it is tight around the wire .
And your male to female jumper wire is ready ,safe and sound .
You can do the same thing on the other side of the jumper wire to make it female to female .
Hope you like it :)