Added code to convert latin1 text docs to utf8