xml upload: handle utf-8 properly