Issue 923 export files encoding

Fixes #923