I decided that I would send the solution as an answer - just in case, if a duplicate of the question is not found.
For your specific error, the problem is calling the chr function. Although there is currently no concatenation to answer the header in the const class.
To solve your problem, you can use the back link \r\n to make your line look like this:
const sEOLChars = "\r\n";
OR you can use the built-in constant PHP_EOL , but keep in mind that it gives you only the end of the line for the current Platform. ^^
source share