Improve escaping sequences in strings greatly.
Fix one small memory leak.