added unicode 'encoding' setting