Fixes #3. Changed escaping of quotes to more procedural and cleaner way.