Support UTF-8 doctest outputs on Windows