added method for encoding files into base64; fixed meta for inanity-data