Escape all strings before writing them to the log file.

This fixes: https://github.com/TheTorProject/ooni-probe/issues/302 for the backend
Merge pull request #45 from TheTorProject/fix/issue_c

Escape all strings before writing them to the log file.