convert 'cc user_ids' to valid format