inline urlsafe base64 encode/decode to reduce a require
init implementation of multipart parsing
fix typo