sys-file-reader: Take string encoding into account for text records.