sanitize gID