Make file export more flexible by allowing write to GML (if ends with .gml)