`.write()` is writing _bytes_ not character data; without the encoding, characters will be encoded based on platform default encoding, not UTF-8.