Fixed saving files without utf-8 encoding, created json objects from CSV's