Thanks for your message! I am not sure how your sequence alignment file was formatted, but it seems that the sequence was not separated from the taxon name by at least two spaces or, as you pointed out, carriage returns may have been in conflict with the UTF-8 format (e.g., "\r", "\M"; they may appear on your files if they were created in Windows-based system). For more details on how input data need to be formatted, you may want to
check the PAML Wiki on GitHub. Please let us know if you have experienced any other issues with regards to the input files!