Forced UTF-8 encoding on strings that may receive unicode input.  

This fixes character encoding problems in updatelayers and in the attributes model.  Without the changes on the attributes model any layer with an attribute that has a non-ascii character will cause the layer detail page not to render and will not render the record in the admin portion of the application.