Usb wire replacement ideas for a custom?


today I played some games on pc version at work, alls good.
I go on lunch break and plug it in, unrecognized device. I plug it into a 360, nothing.
I bring home, it works.
mid game, disconnects.
I come to the conclusion theres a problem right at the end of the wire at the spot where it detaches to the xbox custom lil dingy end. but on the controller side since other tips wont work.
Whats the most practical way to repair something like this? take any other kind of usb wire I guess, cut the usb wire closer to the pad, just twist wiring in, tape it up, wrap around the posts for strain relief and call it a day?