Read config file in binary mode instead of try/except TypeError.