Fix position handling to correctly deal with multibyte characters.
Update file size changes more lazily.