Scan all files is off by default when opening or writing.

Avast maintains a listing of file types that are scanned by default (typically those that represent a risk).
Even though you might have changed/set a text file to .com avast could/should know that it is a text file.