Clean up text handling a bit:

- Rename IO.write -> IO.print.
- Make IO.write not print a newline.
- Support \u Unicode escapes in strings.
Make string buffer for converting number to string large enough.
Correctly terminate debug function name.
Fix scoping and break statements.

Variables declared in the loop were not properly disposed of
when you broke out of the loop.