If I use utf-8 here, scan for a int32, 965, I get "struct.error: unpack requires a bytes object of length 4".
The program freezes.
Other numbers like 14 work with utf-8 here though.