Fix bug with too aggressive Unicode escape sequences

Fix bug with too aggressive Unicode escape sequences

Fixes #1308
Another option is to use `var re = /\\u{([0-9a-fA-F]+)}/g;` and then check the previous character. String.prototype.replace calls the function with the position of the match so you can then check the previous character of the original value.