Added base 64 encoding methods.