Escape backslash and quotes in string literals