extract unescape_unicode_string() and fix rages

fix memory leaks

add test and implementation for malformed escape sequences

(0) -1000 -300 -100 -30 -10 -3 +3 tip

mercurial