Scalar perturbations of the Sz.-Nagy—Foias characteristic function