Change check_output to use universal newlines to fix LF != CRLF.
This created Python 2 vs 3 compatibility problems, so monkey-patched
check_output to deal with str vs. unicode differences and to make
the universal_newline=True behavior default.