convert non-UTF-8 formatted file