Fixed single-quote escaping