sanitize gID
Merge pull request #157 from Remo/patch-3

sanitize gID