fix for #416 savePolygonFile
Merge pull request #422 from ujohnny/416

savePolygonFile "Unsupported file type" fix