Implemented a Base64-encode function, and an associated unit test.