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

I've also included a little xml snippet of the WordPress export that failed during the import of my blog and actually makes the "unit" test also fail before the proposed fix.