Allow non-strings to be logged without raising a TypeError