astrofrog/astropy — pull request #3 by mdboom (2011-10-18 18:55:57+00:00)
Title: Handle the encoding of the file contents in the caller.

Encoding of strings should not be handled in write_if_different, which can not know the encoding.