document fix, change default script encoding