Fix unicdode grains support. Fixes #13596.

Refs #12611