save encoded files