Fixed bug when escaping strings for JavaScript.

The first character should not be escaped by default.