Fix problem with file.append and unicode input
Handle unicode in highstate outputter

Refs #16651
Simplify decoding
Merge pull request #16664 from cachedout/issue_16651

Unicode fixes in file.append and highstate outputter