add encoding to test scripts for windows