Fix unnecessary CharString use

Instead of converting first to Vector{Char} and then to UTF-8, convert
directly to UTF-8. Also fixes future breakage by JuliaLang/julia#7016