The simplest most common solution is to apply electrical tape around the end of the cable and then cut over the tape.