more output fixes
Fixed UTF output issue with codecs