Update igraph.functions.R

gml export: handle illegal characters in attribute names