Unicode fixes in file.append and highstate outputter

Please hold for merge until reviewed by either @thatch45 or @s0undt3ch