TypeError: not all arguments converted during string formatting

mmm, seems the problem could be the plone.app.z3cform.wysiwyg.WysiwygFieldWidget I'm using for this:

according to the code that should have been removed from Plone 5.1, but is still there:

can somebody point me to the right import?