common.cpp: Added toBase64.