Generic from a reputable source will be fine. Just check it's got the right connector, same volts, and same or higher amps/watts rating.
Or you or I could repair the cable.
EDIT: A safe repair could be tricky if the mains cable is damaged right where it enters the pack. They tend to be sealed units. The cable failures I've had have been on the low voltage side, so that's what I was assuming.