Fixed encoding issues when running tests.