When printing to the console, replace • with · on Windows to prevent beeping
Also, respect the "encoding" parameter to stream.write both for this and in stdlog