optimize escapeText for strings without \r, \n, \t or \