remove Base64

Using system method to base64, and check OS version.