New functions: toBase64, fromBase64