make a copy of any strings in order to avoid corrupting python interned strings