move base64 stuff to a better place
base64 encoder for byte[]