Use binary mode for trace files