Put the character encoding declaration earlier.

Apparently it's supposed to be within the first 1024 bytes of the
file.  Who knew?