This prevents issues with Python using platform specific encodings, such as CP1252 on Windows.
This isolates all the code that depends on our current directory structure, and it de-clutters test_lib.py a bit.