Fix escaping for first element in json. This closes #18
Add test case for #18
Merge pull request #19 from jwilberding/dev2

Fix bug with escaping space