Escape \n, \r and \t when updating string rep.