Fixes wonky ascii art conversion bug and improves xss handling.

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>