Unambiguous scattering matrix for non-Hermitian systems