Demand for Safety, Risky Loans: A Model of Securitization