Don't read files literally.

This causes problems when we read in utf-8 and then try to dump the
contents back out. Utf-8 characters get read in as if they are ascii.
Merge pull request #1716 from milkypostman/maybefix

Don't read files literally. Should fix #741