Well the good thing now is that you've got a solid reason for never lending out a leggy again.
Only idea I have would be to put the knotted section in a bowl of hot tap-water with detergent and try to work it loose. Failing that, ask for an un-knotted replacement from your lendee...