open the file in :raw mode

Necessary because we run under PERL_UNICODE=SAD which changes the
default open behavior even of third-party libraries