Problem
Reason
The file was created by using the command add-content without definition of encoding (default ANSI encoding). Later on lines where added by using command out-file (default Unicode encoding)
Solution
Do not mix the two line writer add-content and out-file without definining encoding.