Fixed platform specificate env
Fixed file encode