.Net 4 encoding and GridView

A big change in .NET 4 is the automatic encoding of char 39 (a complete list in this page).

But this causes a problem for inserting a string in a message: for example if we want from the user a confirmation, is a good practice to insert some info from the row in the gridview that we want to delete.

For example we can have an addresses list in a asp:GridView like this :

The last icon is a typical icon for delete , in code we can have something as: