XSS Fix

A fix for a potential XSS attack. Scrubs some potential badness before problem is even saved and also tries to escape more printed html.