Add a base64 codec and tests.