tokenizer: decode carriage returns

also added _emitTextSection helper