added support for encoding to iso-8859-1