Bugfixes: sending files

A network context error happened, and binary files were readed in wrong
(opened as text ones).