fixed script encoding issues in Windows