Some progress with file encoding