fixed a bug where markdown would be improperly rendered if there were UTF-8 chars