Added safe mode (#161)

I've added new unit tests as well, for which this patch does not pass completely due to the expected unsafe output in the existing markdown output results. These tests should probably be ignored.

As the unit tests show, there's also an issue with plain email conversion due to the < and > around the email address. Still a work in progress, but I figured best commit what I have since others are working on the issue.