sanitized_anchor_name: Squash non-alphanumeric characters into a single dash.

Add tests.
Closes #11.

@halostatue, does it look good to you?