make sure there are no spaces in ids, fixes #70)