add other encoding support

hi, @jonathanong:

Can we need to add `base64` or other `encoding` to this package?
I wanna think out PEM file maybe need a base64 encoding or others.