explicit about the write format instead of replying on file extension.