replace write_to with to_chat in [wml_message]

as shadowm suggested, because we are never in the situation that we want
this information in the chat but not in the stderr.