Fix encoding in MoodleDispatcher.