Fixes #10: newlines are properly escaped
Merge pull request #11 from mrclay/10

Fixes #10: newlines are properly escaped