Revert "Switched to UTF-8 encoded streams"

This reverts commit 6d96275217938a888702e3a5363034743ae4c1c0.