Fix buffer allocation size in ConvertToMultibyteString