Fix issue with non-ascii contents in doctest text files.