File restructuring, unix and utf8 encoding