Fix extracting files on Windows

This little unnoticed typo caused that binary files containing the 0x1A
byte (Ctrl-Z - end-of-stream) opened on Windows were truncated.

http://programovani.tumblr.com/post/40023045315/kdyz-hledate-bug-prochazite-kod-az-ten-preklep