Removed file-specific code because file.seek and file.tell don't honor the 'rU' option.