Added printStdOut method to clean up and consolidate unicode code and ensure that output to stdout (either screen or file) will always work.