trace: use binary file open mode in simpletrace