Use gtk_source_encoding_get_all() instead of foreach()

gtk_source_encoding_foreach() has been removed.