using toString to write unknown types by default