add exception for UnicodeDecodeError when getting buffer from weechat