backports: Explicitly open files in binary mode

This should fix some problems seen when using python 3.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 file changed