Logging error TensorBoardLogger with Flux

I have trouble logging Flux training output using TensorBoardLogger. The log file created has the following error message:

Error! /Users/xxx/log/events.out.tfevents.xxxxx.local is not UTF-8 encoded
Saving disabled
See console for more details.

How can I fix this? Any advice is much appreciated. Thanks.