Added feature #1934 by allowing script.charset to be set through an optional 'scriptCharset' ajax option.