In UI_dup_*() function, use the duped string, not the original.