Change file encoding
Logging errors