Merge pull request #39 from jryberg/master

Fixed error in html encoding