Open description file in binary mode

This fixes a Python 3 incompatibility introduced by 5284317, because
bytes cannot be written to a file not opened in binary mode.