Use
[System.IO.File]::WriteAllLines($MyPath, $MyRawString)
Instead of Out-File, this defaults to UTF8 - no BOM