Fix JSON escapes and export

- rm .git dir and .gitignore, too
- escape special chars in JSON output message