Forced UTF-8 encoding on strings that may receive  unicode input.  Fixes character encoding problems in updatelayers and in the attributes model.
Merge pull request #1052 from garnertb/master

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