Adding URL sanitization to prevent security issues.

This prevents XSS. Note that this particular sanitization method will also make it impossible to make relative URL links in markdown. That can be added if needed.