#308 Fix string fetching errors for Moodle 2.7