Fixed a small issue in ECMAScript encoding