Fix encoding preamble and autocrlf breakage.