Ensure that the logged message is a String