BUG: Set file encoding for IPython.html.terminal.handlers.
Merge pull request #6813 from quantopian/terminal-handler-encoding

BUG: Set file encoding for IPython.html.terminal.handlers.