Add conversion to utf-8
Move utf convertion to the right place, tested and works