fix WriteString to handle non-strings