Use JDK base64 encoding tools, performance is better