Speed up reading of files

..by re-encode only once per file, not once per line.

This file also makes sure that the file is, in fact, closed when
the content is read. The old code would close the file only on 
the next run of the garbage collector, if I am not mistaken.
Speed up parsing files

..by not logging non-matches.
Speed up parsing files

..by creating the matching regexp only once per file instead of once
per line.