add missing treatment of missing special case "empty string"
make function static
add missing Dispose() calls for Gtk Contexts

(without this, Gtk on destruction complains about this with a warning)