tweak serialization of colors
use Windows crlf for line endings; use utf8 botm when writing