FastText encoding issues in Windows using PS piping

I wrote a pre-processing script in Python for cleaning up my data before giving it to FastText. I was running this in Windows and instead of writing the file output code I decided to use piping (via the > character).

This is a companion discussion topic for the original entry at