Base64 encode binary