added buffering to filein
merged
changed back to utf8. fixed fileout share rules and offset