Basic ASCII text to wire version.  Breaks on Unicode.  std::exception handling.