Use chardet to guess the character encoding when on python3
Merge remote-tracking branch 'athemis/master' into testing