Fixed bug: string values should escape backslash and quote characters

Characters \ and " were not escaped in string values as they should be.