fixed encoding problem while loading data from server and loading conte...

Fixed encoding problem while loading data from server and loading content from temp file

- loading data from server should be decode into utf-8
- loading/writing data from/to temp file should be decode/encode as utf-8