@jf/regexcapeImplementation of RegExp.escape proposal from ECMAScript and tested with 950+ assertions in test.js.