lib: new _decode64, _encode64 functions