fix #2: check scriptencoding