Added support for converting files to utf-8 encoding on the fly