This is a public domain base64 implementation written by WEI Zhicheng.
