fix utf-8 bug in non english language

if user have inline js with utf-8 characters, we have unicode error in the first time execution