add scriptencoding.