Fix for sql escaping.