Escape JSON strings

Works for me in testing and (finally) doesn't segfault nagios in vagrant -- thanks @bs-github :+1: 

Fixes #3.