Move encoding utils functions to gedit-utils

gedit-encodings will be removed, but the utils functions will still be
needed in gedit.
gedit-encodings-dialog: use GtkSourceEncoding