Seems some uses of e.g. debugf("Bla: " + stringVariable) are problematic if the stringVariable contains a %, since that is a format character. We have to use proper format templates e.g. Bla: %s and pass the stringVariable as argument.