Escaping double quotes and backslashes

This was found while testing issue #325