More tests.
Fix json_escape.
Fix and optimise regex patterns.