Convert text into UTF-8 when importing a content.

#4570 

This is still a WIP - i would like to test a few things.