Add charset support

When pulling translations or source files there are some files that need to be stored with latin encoding. With this pull request we take charset specification in content-type header into account. For this to work charset declarations must be returned from server side also.

@diegobz Please review and merge