Added encode ' on html encode. Fixes #51.