add ability to write environment properties

Having a unicode entry in demo sounds nice, provided that you already have the encoding declaration.