fix doctest execution
Merge pull request #1091 from crate/m/fix_doctests

fix doctest execution
always read files using utf-8 encoding