HTML preview scrollbar position

Better way to restore the scrollbar position after the HTML changes.
Missing text in HTML preview [resolves #19]

Pass length of UTF8 data to discount parser function mkd_string(). This fixes the sometimes missing text
at the end of the generated HTML.