fix encoding error in markdowntext