Fixed issue where bundle_ids with spaces crashed sugar

BTW: I tried raising a malformed bundle exception but it is not handled downstream!