assure C strings are encoded utf-8