<default> tag: Avoid storing all "remaining" substrings on the stack at the same time.

This problem could lead to OOM with large number of <option> elements.