#encoding changed to utf-8 (not properly); #minor changes;