make sure to encode to utf-8 before calling phpserialize even on Python2
make sure to encode in copy_tree
add to wordpress xml some accentuated filename to trigger the encoding bug
apply the encoding fix only with python2
add comment
Merge pull request #1053 from tibonihoo/master

Fix encoding bug when importing from a Wordpress export with accents in an image filename