tracing: Sanitize value returned from write(trace_marker, "...", len)