FIXED: replace EOL in Windows to keep aligned output text buffer