Fix wide char loading in TextBuffer.