Goal: How to keep nylon rope ends from unraveling.

Which of the following methods is more reasonable for accomplishing this goal?
Using a lighter, melt the ends of the nylon rope and smush the melted end lightly to seal the rope.