fixed return from ensureUnescaped