add utf8 header and use ruby 1.9 hash syntax