basedlg: reject IDs containing separator chars