open file in bytes mode fixes UnicodeDecodeError fixes #38