add encoding to test file