odb_io.py: Try to work around python 3 no longer allowing string exceptions.