Fix bug in parsing string with escape symbols in envelope.