Self-encapsulation, or the 'dripping' of an elastic rod