Fix bug in parsing string with escape symbols in envelope.

Once escaped == true, loop breaks only if index == text.Length.