Strip out non-alphanumeric chars from anchors

In order to generate valid anchors, let's remove non-alphanumeric chars
from the output string. The generated strings are along the lines of
strings returned by Active Support's `#parameterize`.

Fixes #385.
Merge pull request #428 from vmg/parameterized-toc-anchors

Strip out non-alphanumeric chars from anchors