Stabilizing superconductivity in nanowires by coupling to dissipative environments.