Local files should be opened as binary.

If you try to retrieve or deploy non-text files it will break if you don't open the local file as binary.