fixed bug when js file contains non-ascii characters

encode inputstreamreader to utf-8 to fix the problem