Handle escaping correctly.