Endogenous Uncertainty and the Non-neutrality of Money