add scriptencoding option