Quick hack to prevent those ugly "<invalid multibyte string>" messages.