String::Format

Fixed a bug in String::Format escape processing, totally rewriting it in
the process so that it no longer uses regular expressions.