by Tim Hunt.
I don't think you should be editing an SQL dump. You should be changing the table collation in the database.
Moodle even provides a script to fix everything for you, if you can run CLI scripts on your server. See https://github.com/moodle/moodle/blob/master/admin/cli/mysql_collation.php