You should probably just call these 'toBase64' and 'fromBase64'.