Operator polynomials as inverses of characteristic functions