Encode strings that may receive non-ascii characters to utf-8.
Merge pull request #1072 from garnertb/layer_attribute_encoding

Encode strings that may receive non-ascii characters to utf-8.