Finally found the bug and a very easy fix. All references to addslashes should be removed from file questionnaire.class.php.
Fixed in versions 2.4 and 2.5 of Questionnaire, and committed to the github. CONTRIB-4706.
Thanks to Barbara for reporting this problem!
Joseph