Speed up generate.js

`regenerate#toRegExp` calls `regenerate#toString` and then just wraps it in `RegExp`. `generate.js` used to take the resut of `toRegExp` and then coerce it back into a string. This small change skips the unneeded coercion.