Issue 923 export files encoding

Fixes #923 
But there is also other opinions here http://stackoverflow.com/questions/5082452/python-string-formatting-vs-format so maybe I'm wrong. So everything ok.