remove debug output
buf in string processing plus escaping newlines in strings
const