set Encoding to handle encoding problems