add base64 encode/decode
fix base64 header