Trim roles when converting