[core] fix UnicodeDecodeError in bot.reply()