fix specs for binmode