Merge pull request #1 from cgiffard/master

Corrected 'character' leaking into global scope.
This fixes #2 where an extra slash is added in a nested block
Merged from master.