Added support for default file encoding