fix bug that incorrectly escapes string quotes