Supports local file saving

But sometimes the file gets cut and brokes, maybe several writes at the
same time, maybe encoding.