Support Unicode output for grains.

Closes #12611
Merge pull request #13176 from cachedout/12611

Support Unicode in grains output.