fixed "possible loss of data" when converting std::streamsize to int
in base64 encoder and decoder (as we read bufferSize < 2GB presumably
we can force the cast)