Escape JavaScript line terminators U+2028 and U+2029.

JavaScript considers these newlines which can result in unfortunate syntax
errors.