fixed double encoding bug
Merge pull request #2 from Postmedia/bug_fix

fixed double encoding bug