ByteString variant of traceEvent.
O(n) This function copies the ByteString to convert it to a
null-terminated Foreign.C.Types.CString.
Note that this function doesn't evaluate the ByteString if user tracing in eventlog is disabled.
The input should be shorter than 2^{16} bytes. Otherwise the RTS
generates a broken eventlog.