Properly support UTF-8 output in doctests in Windows.