Move Base64 methods and make some tag classes internal