fix target info passing to is_x509_connected (must be unicode)