fix non unicode characters. some fix with document loading / format recognition