Replace IOError raising with exceptions.UnspecifiedError