Strip head, script and style tags when converting to plain text

Fixes #3.