fixed markdown/html encoding issues

fixed some issues with markdown not being parsed as introduced in
pr #473