You suggest to replace crlf with cr after reading a textfile from an URL. However, in the dictionary, a note specifies:
Likewise, if you put data into a fileURL or get data from it, end-of-line translation is performed, but not if you put data into or get data from a binfileURL.
Is this automatic translation really limited to local files ? Or is your replace statement just a precaution ?