if the on Windows, write the body as binary