Pseudoelectrostatic effects in the thermodynamics of dye binding to DNA