Add escapes, fix comment bug.

Told you it wasn't thoroughly tested.
Remove newline method (not needed), add \0 escape.
Add \0 escape to C and Java impls.

Also moved the newline stuff around in the Java implementation.
Tweak the newline stuff a bit more.
Add tabs to trimmed whitespace.
Add BlitzMax implementation.

This one probably wasn't worth doing.