Cover both ends with shrink wrap tubing — 2mm tubing for 1.75mm filament for example — ensuring that the two ends overlap inside the wrap. Tape the filament to a heat resistant mat with Kapton ...
Heat shrink tubing might be your friend here, but for an electrically isolated and mechanically supported repair, you may want to give over-molding with a hot glue gun a try. The inspiration for ...