encoding: remove unused function

Since we don't have a gsetting in GtkSourceView, list_to_strv() is
useless.
encoding: make a private function static

The private function was used only in gtksourceencoding.c.