原因解明ではなく、現時点での現象を報告します。
output.txt に出力されるイメージが違う とのことなので
platex lualatex のほか、uplatex pdflatex でも試してみました。
結果は、platex と uplatex 、lualatex と pdflatex はそれぞれ同じ結果になりました。
それぞれで生成された output.txt の sha1sum ハッシュ値
0d73d14be81940c5cf0140c345f5a64875515d17 lualatex/output.txt
0d73d14be81940c5cf0140c345f5a64875515d17 pdflatex/output.txt
b30eeae3874dec52567decdda32638932f83cc44 platex/output.txt
b30eeae3874dec52567decdda32638932f83cc44 uplatex/output.txt
それぞれで生成された output.txt のヘキサダンプ
% od -xc lualatex/output.txt
0000000 2020 2020 5053 4341 0a45 5409 4241 000a
S P A C E \n \t T A B \n
0000017
% od -xc pdflatex/output.txt
0000000 2020 2020 5053 4341 0a45 5409 4241 000a
S P A C E \n \t T A B \n
0000017
% od -xc platex/output.txt
0000000 2020 2020 5053 4341 0a45 5e5e 5449 4241
S P A C E \n ^ ^ I T A B
0000020 000a
\n
0000021
% od -xc uplatex/output.txt
0000000 2020 2020 5053 4341 0a45 5e5e 5449 4241
S P A C E \n ^ ^ I T A B
0000020 000a
\n
0000021