Tred output to file?

My guess is that Powershell puts a BOM in your file. See Syntax error in line 1 - #3 by magjac.