add _clean_id for cleaning arbitrary ids in qs.API