Escape characters jshint considers unsafe.

See https://github.com/jshint/jshint/blob/master/src/stable/reg.js#L14-L15

Change-Id: If1644a3c3c1fb0cd125aab9ccc7ed34b40c1583d