Gracefully handle item name collision.

Append (n) to the end of the name until it is unique, and carry on.