Index: tests/pybin/tools.py
===================================================================
--- tests/pybin/tools.py	(revision 9509a4120499e875cf40687b1ab935b179fa5d44)
+++ tests/pybin/tools.py	(revision 4c868cb2d605f52664207c4a1a18ed9f041e2057)
@@ -238,5 +238,5 @@
 # helper function to check if a files contains only a specific string
 def file_contains_only(file, text) :
-	with open(file) as f:
+	with open(file, encoding="latin-1") as f: # use latin-1 so all chars mean something.
 		ff = f.read().strip()
 		result = ff == text.strip()
