fixed script encoding