more string escaping, this time with octal, hex and embedded-newline goodness