Humm I couldn't replicate this using notepad as the source, regardless of encoding?
In notepad++ if you select view then show symbol then show all it might give you a clue.
Alternatively there is a handy node to remove white space and many other options.