Fix SQL escape string for save document features