How to set the binary mode?