convert a file from a mix of latin1, cp1252 and utf-8 to utf-8