Universal response curve for nanowire superconducting single-photon detectors