Don't read attachment contents from cache when downloading. Cache might have line endings converted.