Fix utf8 weirdness on tests

Fixes #629
Merge pull request #631 from pedrocunha/fix-for-failing-sphinx-tests

Fix utf8 weirdness on tests