Posting above comment as an answer:
If I recall correctly, using Swing and JTextArea, .getText() converts all line separators to \n regardless of platform. I don't know if it works the same in TextArea in FX, but that might be a good place to start looking.