Fix #5769
Merge pull request #5771 from JuliaLang/cb/utf8profile

Fix #5769