add base64 encode with esacped line ending, keep existing api intact