Yes, you can find the relevant code in the Txt Data Handler, /kirby/src/Data/Txt.php
/kirby/src/Data/Txt.php