I can use ofstream to write to UTF-8 BOM file. I can also write Unicode string to file using wofstream and imbue with `utf8_locale` (`codecvt_utf8`). However, I cannot find out how to write Unicode string to file with UTF-8 BOM encoding.