support of byte[] encoding, use Java 8 base64